package com.zheng.study.web.shiro.realm;

import java.util.Map;

/**
 * 用户会话权限 Token
 * ============================================================================
 * author : fallenpanda
 * createDate:  2018/8/17 。
 * ============================================================================
 */
public class StatelessAuthcToken extends StatelessBaseToken {
	private static final long serialVersionUID = -2411409274102993357L;

	private String uid;
	private Map<String, String> params;
	private String token;

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public Map<String, String> getParams() {
		return params;
	}

	public void setParams(Map<String, String> params) {
		this.params = params;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Object getPrincipal() {
		return uid;
	}

	public Object getCredentials() {
		return token;
	}
}
